#include <stdio.h>

struct student
{
	char sno[8];
	char name[20];
	char sex;
	int age;
	double score;
};

void change(struct student *p);

int main(void)
{
	struct student s = {"2015001", "LiMing", 'M', 18, 92.5}, *q = &s;

	puts("\t\t\tsno\t\tname\tsex\tage\tscore");
	printf("before modifying\t%s\t\t%s\t%c\t%d\t%.1f\n", s.sno, s.name, s.sex, s.age, s.score);
	change(q);
	printf("after modifying\t\t%s\t\t%s\t%c\t%d\t%.1f\n", s.sno, s.name, s.sex, s.age, s.score);

	return 0;
}

void change(struct student *p)
{
	p->age++;
}